package com.zzw.hj108;

import java.util.Scanner;

/**
 * @Project: hw_java
 * @Description: 求最小公倍数
 * @Author: zzw
 */

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    // 求最大公约数，辗转相除法
    public static int gcd(int a, int b) {
        if (a < b) {
            int temp = a;
            a = b;
            b = temp;
        }
        while (b > 0) {
            int rem = a % b;
            a = b;
            b = rem;
        }
        return a;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();

        // 最小公倍数为两数之积除以最大公约数
        int result = a * b / gcd(a, b);

        System.out.println(result);
    }
}